import Config.RegistryConfig;
import Config.RpcConfig;
import Service.UserService;

import bootstrap.ProviderBootstrap;
import model.ServiceInfo;
import model.ServiceRegisterInfo;
import register.LocalRegistry;
import register.Registry;
import register.RegistryFactory;
import server.HttpServer;
import server.VertHttpServer;
import boot.RpcApplication;

import java.util.ArrayList;
import java.util.List;

public class ProviderBoot {
    public static void main(String[] args) {
        //要注册的服务，加入到列表
        List<ServiceRegisterInfo> serviceRegisterInfoList = new ArrayList<>();
        ServiceRegisterInfo serviceRegisterInfo = new ServiceRegisterInfo(UserService.class.getName(), UserServiceImpl.class);
        serviceRegisterInfoList.add(serviceRegisterInfo);
        //调用提供者启动类初始化方法
        ProviderBootstrap.init(serviceRegisterInfoList);
    }
}
